<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			
		new Promise(function (resolve, reject) {
		       resolve('成功')
		       //reject('失败')
		}).then(function(value) {
		    console.log(resolve); 
		}).catch(function(error){
		    console.log(error); 
		}).finally(function () {
		    console.log("End");
		});
			
		</script>
	</body>
</html>